package com.yishun.springboot.mapper;

import java.util.List;
import org.springframework.stereotype.Component;
import com.yishun.springboot.pojo.GwsVehicleDTO;
import com.yishun.springboot.pojo.PinyiVehicleDetailed;

/**
 * 揚塵監測Device_code進行的DB查詢類
 * 
 * @author YS
 *
 */
@Component
public interface PinyiVehicleDetailedMapper {

	List<PinyiVehicleDetailed> findAll();

	PinyiVehicleDetailed selectOne(String deviceNo);

	/**
	 * 根据工务署项目号查询多少个车辆道闸信息
	 * 
	 * @param GwsProjectCode
	 * @return
	 */
	List<PinyiVehicleDetailed> selectOneProjectHowManyByGwsProjectCode(String GwsProjectCode);

	int innerOneRecord(PinyiVehicleDetailed pinyiVehicleDetailed);

	int add(GwsVehicleDTO dto);

	int insertAll(List<PinyiVehicleDetailed> pinyivehicleDetailedList);

}